package com.ruoyi.domain;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 手机端用户车辆信息对象 mobil_car_info
 *
 * @author ruoyi
 * @date 2025-01-20
 */
public class MobilCarInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 车辆主键 */
    private Integer id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Integer uid;

    /** 车型 */
    @Excel(name = "车型")
    private String type;

    /** 车牌号 */
    @Excel(name = "车牌号")
    private String carNum;

    /** 删除状态 */
    private Integer deleted;

    /** 是否默认(1默认 0非默认) */
    @Excel(name = "是否默认", readConverterExp = "1=默认,0=非默认")
    private Integer defaultCar;

    /** 车辆照片URL */
    @Excel(name = "车辆照片URL")
    private String avater;

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getUid() {
        return uid;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setCarNum(String carNum) {
        this.carNum = carNum;
    }

    public String getCarNum() {
        return carNum;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDefaultCar(Integer defaultCar) {
        this.defaultCar = defaultCar;
    }

    public Integer getDefaultCar() {
        return defaultCar;
    }

    public void setAvater(String avater) {
        this.avater = avater;
    }

    public String getAvater() {
        return avater;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("uid", getUid())
                .append("type", getType())
                .append("carNum", getCarNum())
                .append("deleted", getDeleted())
                .append("defaultCar", getDefaultCar())
                .append("avater", getAvater())
                .toString();
    }
}

